#!/usr/bin/python

import smtplib

sender = 'serdar.ceran@yaltes.com'
receivers = ['bsceran@gmail.com']

message = """From: From Person <serdar.ceran@yaltes.com>
To: To Person <bsceran@gmail.com>
Subject: SMTP e-mail test

This is a test e-mail message.
"""

try:
   smtpObj = smtplib.SMTP('192.168.13.4:25')
   smtpObj.login('s.ceran','464197Bsc')
#   smtpObj.ehlo()
#   smtpObj.starttls()
   smtpObj.sendmail(sender, receivers, message)         
   print "Successfully sent email"
except smtplib.SMTPException:
   print "Error: unable to send email"
